﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
using BLL;

namespace web.admin.InnerCon
{
    public partial class InnerWorks : System.Web.UI.Page
    {
        WorkService workService = new WorkService();
        ContestService contestService = new ContestService();
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                String contestId = Request["id"];
                if (String.IsNullOrEmpty(contestId))
                {
                    return;
                }

                btn_Add.NavigateUrl = "AddInnerWork.aspx?conid=" + contestId;
                rplist.DataSource = workService.GetContestWorks(contestId);
                rplist.DataBind();
            }
            
        }
    }
}